package imserver.service;

import imserver.beans.GroupInfo;
import imserver.common.util.DaoException;

public interface GroupService {
	
	/**
	 * 新建一个分组
	 * @param groupInfo
	 * @throws DaoException 
	 */
	public void create(GroupInfo groupInfo) throws DaoException;
	
	/**
	 * 从分组里面添加一个好友
	 * @param memberInfo
	 * @throws DaoException 
	 */
	public void addMember(int id, String memberNum) throws DaoException;
	
	/**
	 * 从分组里面删除一个好友
	 * @param memberId
	 * @throws DaoException 
	 */
	public void delMember(int groupId, int memberId) throws DaoException;
	
	/**
	 * 删除分组
	 * @param id
	 * @throws DaoException 
	 */
	public void delGroup(int id) throws DaoException;
	
	/**
	 * 修改组名
	 * @param id
	 * @param name
	 * @throws DaoException 
	 */
	public void updateName(int id, String name) throws DaoException;
}
